<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

 <link rel="stylesheet" type="text/css" href=" <?php echo base_url();?>css/style_list_tecn.css"></link>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
 

</head>

<body onload="window.parent.scrollTo(0,0)">

<h2>Medios Auxiliares</h2>

<?php if($modi!=null && $modi==1){?>
<?php echo form_open('visitas_modi/modificar/'.$idVisita.'/3'); ?>
<?php }else {?>
<?php echo form_open('visitas_modi/index/'.$idVisita.'/3');} ?>


<?php foreach ($mediosAux as $md){
	$checked = false;
		
	foreach ($med as $m){ 
		if ($md['idMaquinaria'] == $m->idMaquinaria){ 
			$checked = true;	
			break;	
		}		
	}
	
	if($checked==true){
		?> 
			<p><input type="checkbox" name="maquinas[]" value="<?php echo $md['idMaquinaria'];?>" size="50" checked/><?php echo $md['nombreMaq'];?></p>
		<?php 
		
	}else{
		?>
			<p><input type="checkbox" name="maquinas[]" value="<?php echo $md['idMaquinaria'];?>" size="50" /><?php echo $md['nombreMaq'];?></p>
		<?php 
		
	}
	
} 



?>


</br>

<section><button type="submit" class="btnLogin">Guardar</button></section>

</br></br></br>

</form>

</body>


</html>